From f6e4baff8280c1960636aa48787d7956fb7dcce8 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 25 Jul 2008 13:59:07 +0100 Subject: [PATCH] Support using a specific branch or tag of ioemu-remote With this patch you can set QEMU_TAG to check out a specific version. When we set it, QEMU_TAG ought to be in Config.mk, I think. Signed-off-by: Ian Jackson --- tools/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/Makefile b/tools/Makefile index 6789ec4003..ff4175de9e 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -78,6 +78,12 @@ ioemu-dir-find: rm -rf ioemu-remote ioemu-remote.tmp; \ mkdir ioemu-remote.tmp; rmdir ioemu-remote.tmp; \ $(GIT) clone $(CONFIG_QEMU) ioemu-remote.tmp; \ + if [ "$(QEMU_TAG)" ]; then \ + cd ioemu-remote.tmp; \ + $(GIT) branch -D dummy >/dev/null 2>&1 ||:; \ + $(GIT) checkout -b dummy $(QEMU_TAG); \ + cd ..; \ + fi; \ mv ioemu-remote.tmp ioemu-remote; \ fi; \ rm -f ioemu-dir; \ -- 2.30.2